package com.i2works.smartluolong.web.service.item.impl;

import com.i2works.smartluolong.utils.basecommon.BaseCommonServiceImpl;
import com.i2works.smartluolong.utils.exception.DAOException;
import com.i2works.smartluolong.utils.exception.ServiceException;
import com.i2works.smartluolong.web.dal.item.dao.IItemAttrDAO;
import com.i2works.smartluolong.web.entity.item.ItemAttrDO;
import com.i2works.smartluolong.web.entity.item.ItemAttrQuery;
import com.i2works.smartluolong.web.service.item.IItemAttrService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Li haoyu
 * @date 2018-12-17
 */
@Service("itemAttrService")
public class ItemAttrServiceImpl extends BaseCommonServiceImpl<ItemAttrQuery, ItemAttrDO> implements IItemAttrService {
    @Autowired
	private IItemAttrDAO itemAttrDAO;

	public void deleteByProjectId(String projectId) throws ServiceException {
		try {
			itemAttrDAO.deleteByProjectId(projectId);
		} catch (DAOException e) {
			e.printStackTrace();
		}
	}

}
